package com.sit.pojo;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class punish {
    private String readId;
    private String bookId;
    private Date punishdate;
    private Date nowdate;
    private double pmoney;

    public punish(){}
    public punish(String readId, String bookId, Date punishdate, Date nowdate, double pmoney) {
        this.readId = readId;
        this.bookId = bookId;
        this.punishdate = punishdate;
        this.nowdate = nowdate;
        this.pmoney = pmoney;
    }

    public String getReadId() {
        return readId;
    }

    public void setReadId(String readId) {
        this.readId = readId;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public Date getPunishdate() {
        return punishdate;
    }

    public void setPunishdate(Date punishdate) {
        this.punishdate = punishdate;
    }

    public Date getNowdate() {
        return nowdate;
    }

    public void setNowdate(Date nowdate) {
        this.nowdate = nowdate;
    }

    public void setPmoney(double pmoney) {
        this.pmoney = pmoney;
    }

    public double getPmoney() {
        return pmoney;
    }

    @Override
    public String toString() {
        return "punish{" +
            "readId='" + readId + '\'' +
            ", bookId='" + bookId + '\'' +
            ", punishdate=" + punishdate + '\'' +
            ", nowdate=" + nowdate + '\'' +
            ", pmoney=" + pmoney + '\'' +
            '}';
    }
}
